package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.web.R;
import com.itheima.reggie.entity.Employee;
import com.itheima.reggie.entity.dto.LoginDto;
import com.itheima.reggie.entity.dto.PageDto;

/**
 * 员工业务层接口
 *
 * @Author Vsunks.v
 * @Blog blog.sunxiaowei.net
 * @Description: 员工业务层接口，继承MP提供的父接口IService<实体类型>
 */
public interface EmployeeService extends IService<Employee> {
    R<Employee> login(LoginDto loginDto);

    R initAndSave(Employee employee);

    R saveWithNameCheck(Employee employee);

    R<Page<Employee>> page(PageDto pageDto);
}
